Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <button type="button" onclick="myFunction()">Return the value of the clip property</button><br> <img id="myImg" style="position:absolute;clip:rect(0px,60px,200px,0px);" src="w3javascript.gif" width="100" height="132"> <script> function myFunction() { alert(document.getElementById("myImg").style.clip); } </script> </body> <!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_style_clip2 by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:25:16 GMT --> </html>
Result:
Try it Yourself - © w3schools.com